package com.wsleo.jblog.model.article;

import java.util.List;
import java.util.Map;

import com.wsleo.jblog.model.BaseModel;
import com.wsleo.jblog.model.common.Status;

/**
 * Article Tag
 */
public class ArticleTag extends BaseModel {

    private static final long serialVersionUID = 1L;

    private String tagName;
    private String aliasName;
    private Status status = Status.NORMAL;
    private List<Article> articles;

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public String getAliasName() {
        return aliasName;
    }

    public void setAliasName(String aliasName) {
        this.aliasName = aliasName;
    }

    public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

    public List<Article> getArticles() {
        return articles;
    }

    public void setArticles(List<Article> articles) {
        this.articles = articles;
    }

    @Override
    protected Map<String, Object> ListInsertableFields() {
        return super.ListInsertableFields();
    }

    @Override
    public String toString() {
        return "ArticleTag [tagName=" + tagName + ", aliasName=" + aliasName
                + ", status=" + status + ", createTime="
                + getCreateTime() + ", lastUpdTime=" + getLastUpdTime()
                + ", lastUpdBy=" + getLastUpdBy() + ", id=" + getId()
                + "]";
    }

}
